package Day006_综合案例;

public class Teacher extends Person {

    public Teacher() {
    }

    public Teacher(int ID, String name, String esx, String birthday, int age) {
        super(ID, name, esx, birthday, age);
    }

    //继承Person类 重写抽象方法
    @Override
    public String getType() {
        return "老师";
    }

    @Override
    public String getWork() {
        return "教java";
    }
}
